package com.sky.controller.admin;

import com.sky.result.Result;
import com.sky.service.ShopService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;
@Api(tags = "店铺相关接口")
@RestController(value = "adminShopController")
@RequestMapping("/admin/shop")

public class ShopController {
    @Autowired
    private ShopService shopService;
    @PutMapping("/{status}")
public Result updaStatys(@PathVariable Integer status){

        return shopService.updaStatys(status);
}
     @GetMapping("/status")
    public Result getStatus(){
         return shopService.getStatus();
     }
}
